package com.exam.demo;

import com.exam.demo.entity.Paper;
import com.exam.demo.util.PaperUtil;
import com.exam.demo.util.generic.GA;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
//        test();
    }

    public static void test(){
        //新建一个paper
        //Paper(paperId=151, paperName=数学分析考试1, score=2, courseId=3, courseName=数学分析, questionCount=null, radioQuestionCount=4, checkboxQuestionCount=3, judgeQuestionCount=1, fillQuestionCount=null, objectiveQuestionCount=null, suggestTime=8, limitStartTime=null, limitEndTime=null, address=null, teacherId=1, teacherName=王一, createTime=Sat Apr 16 00:04:46 CST 2022, paperType=1, difficult=3, makePaperMethod=2, radioScore=15, checkboxScore=10, judgeScore=10, paperScore=null, questionList=null, useStatus=1)
        Object o = PaperUtil.readObjectFromFile();
        Paper paper = (Paper)o;
        GA ga = new GA();
        ga.init(paper);

    }

}
